#import <UIKit/UIKit.h>
#import "MRCollectionViewLayout.h"

typedef NS_ENUM(NSInteger, MRCollectionViewCellEditingStyle) {
	MRCollectionViewCellEditingStyleNone	= 0,
	MRCollectionViewCellEditingStyleDelete	= 1,
	MRCollectionViewCellEditingStyleLock	= 2,
	MRCollectionViewCellEditingStyleUnlock	= 4,
};


#pragma mark - 集合单元格
@interface MRCollectionViewCell : UICollectionViewCell

@property (nonatomic) UIView		*reflection;		//倒影视图

@end

#pragma mark - 代理协议
@protocol MRCollectionViewDelegate <UICollectionViewDelegate>
@optional

- (MRCollectionViewCellEditingStyle)collectionView:(UICollectionView *)collectionView editingStyleAtIndexPath:(NSIndexPath *)indexPath;
- (void)collectionView:(UICollectionView *)collectionView commitEditingStyle:(MRCollectionViewCellEditingStyle)editingStyle atIndexPath:(NSIndexPath *)indexPath;

- (void)collectionView:(UICollectionView *)collectionView initialLayoutAttributes:(UICollectionViewLayoutAttributes *)attributes;
- (void)collectionView:(UICollectionView *)collectionView finalLayoutAttributes:(UICollectionViewLayoutAttributes *)attributes;

@end

#pragma mark - 集合视图
@interface MRCollectionView : UICollectionView <UIGestureRecognizerDelegate>

- (void)setEditing:(BOOL)editing animated:(BOOL)animated;

@end
